package com.exam.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.exam.entity.Evaluation;
import com.exam.entity.TestResult;

import java.util.List;

/**
 * @Description:
 * @Company：
 * @Author:
 * @Date: 2022/5/1 17:07
 * @Version 1.0
 */
public interface EvaluationService {
    Integer add(Evaluation evaluation);

    Integer addResult(TestResult testResult);

    Integer get(TestResult testResult);

    Integer updateResult(TestResult testResult);

    Evaluation findById(Integer id);


    List<TestResult> findAnswer(Integer id, Integer paperId,Integer type);


    IPage<Evaluation> findAll(Page<Evaluation> teacherPage, Integer userId, String teacherName,String source);
}
